package com.migo.log;

import java.io.Serializable;

public class SystemLog implements Serializable{
    private String logId;
    private String requestURL = ""; // 请求地址
    private String requestURI = ""; // 请求资源标识
    //    总结一下：URL是一种具体的URI，它不仅唯一标识资源，
// 而且还提供了定位该资源的信息。URI是一种语义上的抽象概念，
// 可以是绝对的，也可以是相对的，而URL则必须提供足够的信息来定位，
// 所以，是绝对的，而通常说的relative URL，则是针对另一个absolute URL，
// 本质上还是绝对的
    private String ip = "127.0.0.1"; // 请求ip
    private String inputParamJson = ""; // 传入参数
    private String outputParamJson = ""; // 返回结果
    private String requestMethodName = "";//请求方法名称
    private String requestMethodDesc = "";//请求方法描述
    private String operationType = "";//要执行的操作类型比如：add操作
    private String startTimeMillis = ""; // 开始时间
    private String endTimeMillis = ""; // 结束时间
    private String exceptionCode = "";//异常代码
    private String exceptionMessage = "";//异常信息
    private int logType = 0;//日志类型 0 正常日志 1 错误日志
    private String addTime;//添加时间

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getRequestURL() {
        return requestURL;
    }

    public void setRequestURL(String requestURL) {
        this.requestURL = requestURL;
    }

    public String getRequestURI() {
        return requestURI;
    }

    public void setRequestURI(String requestURI) {
        this.requestURI = requestURI;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getInputParamJson() {
        return inputParamJson;
    }

    public void setInputParamJson(String inputParamJson) {
        this.inputParamJson = inputParamJson;
    }

    public String getOutputParamJson() {
        return outputParamJson;
    }

    public void setOutputParamJson(String outputParamJson) {
        this.outputParamJson = outputParamJson;
    }

    public String getRequestMethodName() {
        return requestMethodName;
    }

    public void setRequestMethodName(String requestMethodName) {
        this.requestMethodName = requestMethodName;
    }

    public String getRequestMethodDesc() {
        return requestMethodDesc;
    }

    public void setRequestMethodDesc(String requestMethodDesc) {
        this.requestMethodDesc = requestMethodDesc;
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    public String getStartTimeMillis() {
        return startTimeMillis;
    }

    public void setStartTimeMillis(String startTimeMillis) {
        this.startTimeMillis = startTimeMillis;
    }

    public String getEndTimeMillis() {
        return endTimeMillis;
    }

    public void setEndTimeMillis(String endTimeMillis) {
        this.endTimeMillis = endTimeMillis;
    }

    public String getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(String exceptionCode) {
        this.exceptionCode = exceptionCode;
    }

    public String getExceptionMessage() {
        return exceptionMessage;
    }

    public void setExceptionMessage(String exceptionMessage) {
        this.exceptionMessage = exceptionMessage;
    }

    public int getLogType() {
        return logType;
    }

    public void setLogType(int logType) {
        this.logType = logType;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }
}
